package Day5_07_29;

public class Point {
	private int x;
	private int y;

	public Point() {
		x = 0;
		y = 0;
	}

	public Point(int x, int y) {
		this.x=x;
		this.y=y;
	}

	@Override
	public String toString() {
		return "Point [x=" + x + ", y=" + y + "]";
	}

	public void movePoint(int dx, int dy) {
		x += dx;
		y += dy;
		System.out.println("新的坐标为" + x + "," + y);
	}
}
